package com.example.demo.service;

import com.example.demo.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.vo.GroupInput;
import com.example.demo.entity.vo.GroupOutput;
import com.example.demo.entity.vo.LoginInput;
import com.example.demo.entity.vo.LoginOutput;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chen huilong
 * @since 2022-10-04
 */
public interface UserService extends IService<User> {

    void register(User user);

    LoginOutput login(LoginInput loginInput, HttpServletRequest request, HttpServletResponse response);

    public User getUserInfo(String token, HttpServletRequest request);

    void setVerificationCode(String token, String verificationCode);

    void modifyStuInfo(String token, User user);

    void changePassword(Map<String, Object> input, HttpServletRequest request);
}
